package com.fqgj.xjd.user.dao.impl;

import com.fqgj.common.base.AbstractBaseMapper;
import com.fqgj.xjd.user.dao.UserActivityDao;
import com.fqgj.xjd.user.entity.UserActivityEntity;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * User: frank
 * Date: 2020-04-16
 * Time: 12:04:25.142
 */

@Repository
public class UserActivityDaoImpl extends AbstractBaseMapper<UserActivityEntity> implements UserActivityDao {

    @Override
    public List<UserActivityEntity> selectUserActivityByPackageName(String packageName) {
        Map<String, Object> params = new HashMap<>();
        params.put("packageName", packageName);
        return getSqlSession().selectList(getStatement("selectUserActivityByPackageName"), params);
    }
}